package cn.itcast.mapper;

import cn.itcast.pojo.packageOrderItem;
import cn.itcast.pojo.packageOrderItemExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface packageOrderItemMapper {
    int countByExample(packageOrderItemExample example);

    int deleteByExample(packageOrderItemExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(packageOrderItem record);

    int insertSelective(packageOrderItem record);

    List<packageOrderItem> selectByExample(packageOrderItemExample example);

    packageOrderItem selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") packageOrderItem record, @Param("example") packageOrderItemExample example);

    int updateByExample(@Param("record") packageOrderItem record, @Param("example") packageOrderItemExample example);

    int updateByPrimaryKeySelective(packageOrderItem record);

    int updateByPrimaryKey(packageOrderItem record);

    /**
     * 根据打包订单id获取打包订单明细
     * @param packageOrderId
     * @return
     */
    List<packageOrderItem> getPackageOrderItem(int packageOrderId);


    List<packageOrderItem> selectPackageOrderId(Integer PackageOrderId);

    List<packageOrderItem> horsemanEvenDayPackageOrder();
}